﻿package com._public._utils._mailer
{
	import flash.events.Event;

	public class MailEvent extends Event
	{
		public static const SOCKET_QUIT:String = "quit";
		public static const SOCKET_CONNECTED:String = "connected";
		public static const SOCKET_IO_ERROR:String = "IOError";
		public static const SOCKET_SECURITY_ERROR:String = "securityError";
		public static const SOCKET_DATA:String = "data";
		
		public static const MAIL_ERROR:String = "mailError";
		public static const MAIL_STEP:String = "step";
		public static const MAIL_INFO:String = "info";
		
		private var _data:Object;
		
		/**
		 *  
		 * @param type
		 * @param info
		 * @param bubbles
		 * @param cancelable
		 * 
		 */
		public function MailEvent(type:String, data:Object = null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			
			_data = data;
		}
		
		public function get data():Object {
			return _data;
		}
		
	}
}